package com.ssy.lingxi.logistics.repository;

import com.ssy.lingxi.logistics.entity.FreightTemplateDesignate;
import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * 运费模板指定地区实体仓库
 *
 * @author yzc
 * @version 2.0.0
 * @date 2020/7/14
 */
public interface FreightTemplateDesignateRepository extends JpaRepository<FreightTemplateDesignate, Long> {

    List<FreightTemplateDesignate> findAllByFreightTemplateId(Long freightTemplateId, Sort sort);

    List<FreightTemplateDesignate> findAllByFreightTemplateIdIn(List<Long> freightTemplateIdList);

    void deleteByFreightTemplateId(Long id);
}